package com.pug.task.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/4/17 15:47
 */
@Slf4j
@Component
public class MyTaskJobProcess {

    @Async
    public void doProcess1() throws InterruptedException {
        log.info("doProcess1.............start");
        Thread.sleep(5000);
        log.info("doProcess1.............end");
    }

}
